<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SkyGameEngine2d: TextFont类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SkyGameEngine2d
   &#160;<span id="projectnumber">0.1</span>
   </div>
   <div id="projectbrief">基于Driectx112D游戏引擎</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="class_text_font-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">TextFont类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:a402bfd6c662220d49ef582ea43f5e550"><td class="memItemLeft" align="right" valign="top"><a id="a402bfd6c662220d49ef582ea43f5e550"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>FONT_WEIGHT</b> { <b>FONT_WEIGHT_LIGHT</b> = 300, 
<b>FONT_WEIGHT_NORMAL</b> = 400, 
<b>FONT_WEIGHT_MEDIUM</b> = 500, 
<b>FONT_WEIGHT_BOLD</b> =700
 }</td></tr>
<tr class="separator:a402bfd6c662220d49ef582ea43f5e550"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3cb8b672dc6e786162ecf197961b5f21"><td class="memItemLeft" align="right" valign="top"><a id="a3cb8b672dc6e786162ecf197961b5f21"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>FONT_STYLE</b> : int { <b>NORMAL</b> =DWRITE_FONT_STYLE_NORMAL, 
<b>OBLIQUE</b> =DWRITE_FONT_STYLE_OBLIQUE, 
<b>ITALIC</b> = DWRITE_FONT_STYLE_ITALIC
 }</td></tr>
<tr class="separator:a3cb8b672dc6e786162ecf197961b5f21"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab2b8bdf35c574abf11960fa55f41546d"><td class="memItemLeft" align="right" valign="top"><a id="ab2b8bdf35c574abf11960fa55f41546d"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>FONT_STRETCH</b> : int { <br />
&#160;&#160;<b>ULTRA_CONDENSED</b> =DWRITE_FONT_STRETCH_ULTRA_CONDENSED, 
<b>EXTRA_CONDENSED</b> =DWRITE_FONT_STRETCH_EXTRA_CONDENSED, 
<b>CONDENSED</b> =DWRITE_FONT_STRETCH_CONDENSED, 
<b>SEMI_CONDENSED</b> =DWRITE_FONT_STRETCH_SEMI_CONDENSED, 
<br />
&#160;&#160;<b>NORMAL</b> =DWRITE_FONT_STRETCH_NORMAL, 
<b>MEDIUM</b> =DWRITE_FONT_STRETCH_MEDIUM, 
<b>SEMI_EXPANDED</b> =DWRITE_FONT_STRETCH_SEMI_EXPANDED, 
<b>EXPANDED</b> =DWRITE_FONT_STRETCH_EXPANDED, 
<br />
&#160;&#160;<b>EXTRA_EXPANDED</b> =DWRITE_FONT_STRETCH_EXTRA_EXPANDED, 
<b>ULTRA_EXPANDED</b> =DWRITE_FONT_STRETCH_ULTRA_EXPANDED
<br />
 }</td></tr>
<tr class="separator:ab2b8bdf35c574abf11960fa55f41546d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac430d263555266f74df93bbf57e23d0b"><td class="memItemLeft" align="right" valign="top"><a id="ac430d263555266f74df93bbf57e23d0b"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>TextFontPtr</b> = std::shared_ptr&lt; <a class="el" href="class_text_font.html">TextFont</a> &gt;</td></tr>
<tr class="separator:ac430d263555266f74df93bbf57e23d0b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a5cf53532abc73b76dee942414153b1ba"><td class="memItemLeft" align="right" valign="top"><a id="a5cf53532abc73b76dee942414153b1ba"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TextFont</b> (int font_size, int font_weight=FONT_WEIGHT::FONT_WEIGHT_NORMAL, FONT_STYLE font_style=FONT_STYLE::NORMAL, FONT_STRETCH font_stretch=FONT_STRETCH::NORMAL, const std::string &amp;font_family=TextFont::defultFontFamily, const std::string &amp;font_locale_name=TextFont::defultFontLocalName)</td></tr>
<tr class="separator:a5cf53532abc73b76dee942414153b1ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9147723f66d93b1a6d522b0c4e110071"><td class="memItemLeft" align="right" valign="top"><a id="a9147723f66d93b1a6d522b0c4e110071"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TextFont</b> (int font_size, int font_weight, FONT_STYLE font_style, const std::string &amp;font_family=TextFont::defultFontFamily, const std::string &amp;font_locale_name=TextFont::defultFontLocalName)</td></tr>
<tr class="separator:a9147723f66d93b1a6d522b0c4e110071"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a144544c50994d9772acabe34381a40af"><td class="memItemLeft" align="right" valign="top"><a id="a144544c50994d9772acabe34381a40af"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TextFont</b> (const <a class="el" href="class_text_font.html">TextFont</a> &amp;other)</td></tr>
<tr class="separator:a144544c50994d9772acabe34381a40af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab4527fb6f7f6c2f6e4608e5bf9b34e1"><td class="memItemLeft" align="right" valign="top"><a id="aab4527fb6f7f6c2f6e4608e5bf9b34e1"></a>
IDWriteTextFormat *&#160;</td><td class="memItemRight" valign="bottom"><b>getDwriteTextFormat</b> ()</td></tr>
<tr class="separator:aab4527fb6f7f6c2f6e4608e5bf9b34e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a51b46eb1f6a69354e0a15ac9b790bb0b"><td class="memItemLeft" align="right" valign="top"><a id="a51b46eb1f6a69354e0a15ac9b790bb0b"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setFontSize</b> (int font_size)</td></tr>
<tr class="separator:a51b46eb1f6a69354e0a15ac9b790bb0b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c52f41f58b7c5a80719f6d2f76d318d"><td class="memItemLeft" align="right" valign="top"><a id="a0c52f41f58b7c5a80719f6d2f76d318d"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>getFontSize</b> () const</td></tr>
<tr class="separator:a0c52f41f58b7c5a80719f6d2f76d318d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a256af58cdf91cb92d9b85eefb9071336"><td class="memItemLeft" align="right" valign="top"><a id="a256af58cdf91cb92d9b85eefb9071336"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setFontWeight</b> (int font_weight)</td></tr>
<tr class="separator:a256af58cdf91cb92d9b85eefb9071336"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab9a5c1d13b5765b85ef6455cdbf4aca3"><td class="memItemLeft" align="right" valign="top"><a id="ab9a5c1d13b5765b85ef6455cdbf4aca3"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>getFontWeight</b> () const</td></tr>
<tr class="separator:ab9a5c1d13b5765b85ef6455cdbf4aca3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8a8f4c75417f473f2cbb7045f5d7e7ae"><td class="memItemLeft" align="right" valign="top"><a id="a8a8f4c75417f473f2cbb7045f5d7e7ae"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setFontStyle</b> (FONT_STYLE font_style)</td></tr>
<tr class="separator:a8a8f4c75417f473f2cbb7045f5d7e7ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1d9f126905e9e4d42a3e3df7054401d9"><td class="memItemLeft" align="right" valign="top"><a id="a1d9f126905e9e4d42a3e3df7054401d9"></a>
FONT_STYLE&#160;</td><td class="memItemRight" valign="bottom"><b>getFontStyle</b> () const</td></tr>
<tr class="separator:a1d9f126905e9e4d42a3e3df7054401d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a683d45abe244a870f9bd8d5c2e4561bd"><td class="memItemLeft" align="right" valign="top"><a id="a683d45abe244a870f9bd8d5c2e4561bd"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setFontStretch</b> (FONT_STRETCH font_stretch)</td></tr>
<tr class="separator:a683d45abe244a870f9bd8d5c2e4561bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b2760ef5530e9ff99d2afbeada58b2d"><td class="memItemLeft" align="right" valign="top"><a id="a9b2760ef5530e9ff99d2afbeada58b2d"></a>
FONT_STRETCH&#160;</td><td class="memItemRight" valign="bottom"><b>getFontStretch</b> () const</td></tr>
<tr class="separator:a9b2760ef5530e9ff99d2afbeada58b2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a12a0b18822ab8f446af650ded099d43d"><td class="memItemLeft" align="right" valign="top"><a id="a12a0b18822ab8f446af650ded099d43d"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setFontFamily</b> (const std::string &amp;font_framily)</td></tr>
<tr class="separator:a12a0b18822ab8f446af650ded099d43d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab5fc33121cc8d8bf708d79718b1e1639"><td class="memItemLeft" align="right" valign="top"><a id="ab5fc33121cc8d8bf708d79718b1e1639"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><b>getFontFamily</b> () const</td></tr>
<tr class="separator:ab5fc33121cc8d8bf708d79718b1e1639"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1efeb73748bf84b8c7b8025073115612"><td class="memItemLeft" align="right" valign="top"><a id="a1efeb73748bf84b8c7b8025073115612"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setFontLocalName</b> (const std::string &amp;font_local_name)</td></tr>
<tr class="separator:a1efeb73748bf84b8c7b8025073115612"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a78c4b732123561657b6f776e22bdc673"><td class="memItemLeft" align="right" valign="top"><a id="a78c4b732123561657b6f776e22bdc673"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><b>getFontLocalName</b> () const</td></tr>
<tr class="separator:a78c4b732123561657b6f776e22bdc673"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:ab07aa292f330aac2a6be6a3f3bb21517"><td class="memItemLeft" align="right" valign="top"><a id="ab07aa292f330aac2a6be6a3f3bb21517"></a>
static TextFontPtr &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>getDefultFont</b> ()</td></tr>
<tr class="separator:ab07aa292f330aac2a6be6a3f3bb21517"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<hr/>该类的文档由以下文件生成:<ul>
<li>E:/毕业设计/SkyGameEngine2d/src/node/<a class="el" href="_text_font_8h_source.html">TextFont.h</a></li>
<li>E:/毕业设计/SkyGameEngine2d/src/node/TextFont.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
